import { createApp } from 'vue'
import App from './App.vue'
import router from './router'

import 'ant-design-vue/dist/antd.less'
import 'moment/dist/locale/zh-cn'

import 'virtual:windi.css'
// import 'virtual:windi-devtools'

import { createI18n } from 'vue-i18n'
import messages from './locales'

// 2. Create i18n instance with options
const i18n = createI18n({
    locale: 'zh_CN', // set locale
    fallbackLocale: 'en', // set fallback locale
    messages, // set locale messages
  })

console.log(createApp(App).use(router).use(i18n).mount('#app'))
